import { defineStore } from "pinia";
import getCategoryAPI from "@/api/testAPI";
import { ref } from "vue";
export const useCategory = defineStore("Category", () => {
  const food = ref([]);

  const getData = async () => {
    const res = await getCategoryAPI();
    console.log("res", res);

    food.value = res.result;
  };

  return { food, getData };
});
